//
//  DiseaseOnSetCell.m
//  KYProject
//
//  Created by Roman on 16/12/25.
//  Copyright © 2016年 Roman. All rights reserved.
//

#import "DiseaseOnSetCell.h"

@implementation DiseaseOnSetCell


-(NSMutableArray *)arr{
    if (!_arr) {
        _arr = [NSMutableArray array];
    }
    return _arr;
}

//点击cell的btn给属性illName赋值
- (IBAction)clickBtn:(UIButton *)sender {
    
    sender.selected = !sender.selected;
    
    
    if(sender.selected){
        self.illName = self.lbl.text;
        
    }else{
        
        [self.arr removeObject:self.illName];
        self.illName = nil;
        
    }
    
    
    
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
